package com.atguigu01.create.runnable;

/**
 * ClassName: Runnable
 * Package: com.atguigu01.create.runnable
 * Description:
 *
 * @Author BuTang
 * @Create 2023/5/13 22:43
 * @Version 1.0
 */
public class RunnableTest implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i <= 100; i++) {
            if (i % 2 == 0) {
                System.out.println(Thread.currentThread().getName()+":"+i);
            }

        }
    }
}
class RunTest{
    public static void main(String[] args) {
        RunnableTest p = new RunnableTest();
        Thread t = new Thread(p);
        t.start();
    }
}